//*** Guidance generated code ***//
using System.Linq;

using System.Collections.Generic;
using System;

namespace $safeprojectname$
{
    public class Templates
    {
        public const string String = "validator.rules[\"{0}\"] =  {{required: {1}, minlength: {2}, maxlength: {3} }};";
        public const string Number = "validator.rules[\"{0}\"] =  {{required: {1}, min: {2}, max: {3} }};";

        public const string MetaDataString = "{{required: {0}, minlength: {1}, maxlength: {2} }}";
        public const string MetaDataNumber = "{{required: {0}, min: {1}, max: {2} }}";
        public const string MetaDataRequired = "{{required: {0} }}";

        public const string RangeLength = "validator.rules[\"{0}\"] =  {{required: {1}, rangelength:[{2},{3}] }};";
        public const string Range = "validator.rules[\"{0}\"] =  {{required: {1}, range:[{2},{3}] }};";
        public const string Reference = "validator.rules[\"{0}\"] =  {{required: {1} }};";
        public const string MessageRequired = "validator.messages[\"{0}\"] =  {{required: \"{1}\" }};";
        public const string MessageRange = "validator.messages[\"{0}\"] =  {{required: \"{1}\", range: $.validator.format(\"{2}\") }};";
        public const string MessageRangeLength = "validator.messages[\"{0}\"] =  {{required: \"{1}\", rangelength: $.validator.format(\"{2}\") }};";

        public const string PatternEmailStrict = @"^(([^<>()[\]\\.,;:\s@\""]+"
                                     + @"(\.[^<>()[\]\\.,;:\s@\""]+)*)|(\"".+\""))@"
                                     + @"((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}"
                                     + @"\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]{2,}\.)+"
                                     + @"[a-zA-Z]{2,}))$";
    }
}